package org.ilovecode.display
{
	import flash.display.Bitmap;
	import flash.display.Sprite;
	import flash.events.Event;
	
	import org.ilovecode.mvc.View;
	import org.ilovecode.utils.Utilities;
	
	public class FloorImage extends Sprite
	{
		protected var _image:Bitmap;
		
		public function FloorImage()
		{
			super();
		}
		
		public function loadImage(path:String):void
		{
			Utilities.loadContent(path, loadImage_Complete);
		}
		
		private function loadImage_Complete(event:Event):void
		{
			_image = Bitmap(event.target.content);
			this.addChild(_image);
		}
		
	}
}